package site.shihuan.helpdesk.common.model;

/**
 * Constants.
 *
 * @author 周世焕
 * @Date 2021/1/16 20:18
 */
public class Constants {

    public static final String NULL = "";

    public static final String ACCESS_TOKEN = "accessToken";

    /**
     * Header
     */
    public static final String HEADER_CLIENT_ID = "ClientId";

    /**
     * Rest Result Code
     */
    public static final int INTERNAL_SERVER_ERR = 500;

    public static final int COMMON_ERR = 400;

    public static final int AUTH_ERR = 401;

    public static final int CLIENT_ID_ERR = 402;

    public static final int PERMISSION_ERR = 403;

    /**
     * Default Roles
     */
    public static final String ROLE_ADMIN = "admin";

    public static final String ROLE_VISITOR = "visitor";

    public static final String ROLE_DEFAULT = "default";

}
